home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / aal / block.h < prev    next >
C/C++ Source or Header  |  2006-01-09  |  929b  |  37 lines

  1. /* Copyright (C) 2001, 2002, 2003 by Hans Reiser, licensing governed by
  2.    libaal/COPYING.
  3.    
  4.    block.h -- block working functions declaration. */
  5.  
  6. #ifndef AAL_BLOCK_H
  7. #define AAL_BLOCK_H
  8.  
  9. #include <aal/types.h>
  10.  
  11. #ifndef ENABLE_MINIMAL
  12. extern void aal_block_move(aal_block_t *block,
  13.                aal_device_t *device,
  14.                blk_t nr);
  15.  
  16. extern errno_t aal_block_write(aal_block_t *block);
  17. #endif
  18.  
  19. extern void aal_block_free(aal_block_t *block);
  20. extern void aal_block_fini(aal_block_t *block);
  21. extern errno_t aal_block_read(aal_block_t *block);
  22.  
  23. extern errno_t aal_block_fill(aal_block_t * block,
  24.                   unsigned char c);
  25.  
  26. extern errno_t aal_block_init(aal_block_t *block,
  27.                   aal_device_t *device, 
  28.                   uint32_t size, blk_t nr);
  29.  
  30. extern aal_block_t *aal_block_alloc(aal_device_t *device, 
  31.                     uint32_t size, blk_t nr);
  32.  
  33. extern aal_block_t *aal_block_load(aal_device_t *device, 
  34.                    uint32_t size, blk_t nr);
  35. #endif
  36.  
  37.